#include "stm32f10x.h"
#include "led.h"
#include "delay.h"
#include "stdio.h"
#include "adc.h"
#include "usart.h"
#include "oled.h"








u16 gAdcAdValue = 0;   // 存储AD值
u16 gAdcAdValue1 = 0;   // 存储AD值
float gAdcVol = 0;   // 实际电压值

int main(void)
{
	LED_Init(); // LED引脚初始化

	Delay_Init();
	ADC1_Init();
	uint8_t RxData;
	OLED_Init();
	

	while(1){
		
		
		GPIO_ResetBits(GPIOC, GPIO_Pin_13);
		Delay_ms(100);
		GPIO_SetBits(GPIOC, GPIO_Pin_13);
		Delay_ms(100);

		
		gAdcAdValue = Get_ADC_Value(ADC_Channel_5,10);   
		gAdcAdValue1 = Get_ADC_Value(ADC_Channel_6,10);   
		OLED_ShowNum(0,0,gAdcAdValue,4,16,1);
		OLED_ShowNum(0,20,gAdcAdValue1,4,16,1);
		
		OLED_Refresh();
		
		
	 

		
		
	}
}

